package com.netty.esc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@EnableAsync
@EnableNeo4jRepositories(basePackages ="com.yang.springboot.dao")
public class EscImApplication {

    static {
        System.setProperty("es.set.netty.runtime.available.processors", "false");
    }

    public static void main(String[] args) {
        try {
            SpringApplication.run(EscImApplication.class, args);
        } catch (Throwable throwable) {
            throwable.printStackTrace();
        }

    }
}
